/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#include "stdafx.h"
#include "engine_export.h"


#include "UI//UI.h"
#include "窗口/窗口.h"
#include "窗口/intern/Window.h"
#include "MBT_Engine.h"


#pragma comment(linker, "/INCLUDE:f_ui_set_ScaleDPI")



void f_ui_set_ScaleDPI(float32 scl) {
	std::cout<<"scl " << scl << std::endl;
	scl = clamp(scl, 0.1, 10);

	for (auto& e : S_Engine::g_窗口容器) {
		(e.second)->m_更新绘制属性 = true;
		(e.second)->m_UIctx->m_DPI = (e.second)->m_UIctx->m_窗口DPI * scl;
	}
}




















